package com.mind.db;

public interface DAOConstants {
	/**
	 * base database type 2012-3-23@author yangshaobo
	 */
	public enum DBType {
		MONGODB(0);
		private int value;

		private DBType(int value) {
			this.value = value;
		}

		public int getValue() {
			return value;
		}
		public static DBType getDAOType(int value) {
			for (DBType type : DBType.values()) {
				if (type.value == value) {
					return type;
				}
			}
			return MONGODB;

		}

	}
	
	public enum DBKind{
		normal,log;
	}

}
